package com.lcf.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcf.framework.vo.PageVO;
import com.lcf.system.dto.GoodsDTO;
import com.lcf.system.entity.Goods;
import com.lcf.system.query.GoodsPageQuery;
import com.lcf.system.vo.GoodsVO;

/**
 * 商品(Goods)表服务接口
 *
 * @author lcf
 * @since 2025-05-02 11:54:59
 */
public interface GoodsService extends IService<Goods> {
    /**
     * 新增
     */
    boolean addGoods(GoodsDTO dto);
    /**
     * 删除
     */
    boolean deleteGoods(long id);
    /**
     * 修改
     */
    boolean updateGoods(long id, GoodsDTO dto);
    /**
     * 根据id查询
     */
    GoodsVO getGoods(long id);
    /**
     * 分页查询
     */
    PageVO<GoodsVO> getGoodsList(GoodsPageQuery query);
}

